% Credits go to Abel Heinsbroek who originally started this document
% start preamble

\documentclass[a4wide,11pt]{book} 
% ============================= Packages================================ %
\RequirePackage{a4wide}                          	% make better use of A4 paper
\usepackage{color}
\usepackage{amsmath} 
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{emptypage}
\usepackage{eso-pic}                                % picture in back/forground (used in cover)
\usepackage{pdfpages}
\usepackage[numbers]{natbib}
\usepackage{bchart}
\usepackage{tikz} 
\usetikzlibrary{shapes,arrows,mindmap,trees,backgrounds}
\usepackage{hyperref}
\usepackage{epstopdf}
\usepackage{pdflscape}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{footnote}
\usepackage{pgfplots}
\pgfplotsset{compat=newest} %if problems use 1.7
\usepackage[T1,T5]{fontenc}
\usepackage{tocbibind}
\usepackage[small,bf]{caption}
\usepackage{epstopdf}
\usepackage{epsfig}

% Define URLs containing weird characters
\urldef\salinitySea\url{www.sampleadresswith weird characters}

% Configure captions
\setlength{\captionmargin}{20pt}

% Euro sign
\usepackage[gen]{eurosym}

% Use excel tables
\usepackage{booktabs}
\usepackage{multirow}


% ============================= End preamble ================================ %
\setcounter{tocdepth}{1}
\begin{document}
\pagestyle{empty}

% ============================= Cover and Title Pages ================================ 
\frontmatter
%\input{./Report/Cover.tex}
\input{./Report/Title.tex}
%\input{./Report/Preface.tex}
%\input{./Report/Abstract.tex}


\setcounter{tocdepth}{1}
%\tableofcontents
%\listoffigures
%\listoftables

% ============================= Mainmatter ================================ 
\mainmatter

\pagestyle{fancy}
\fancyhf{}

\rhead{\thechapter{}. \leftmark}
\renewcommand{\chaptermark}[1]{
\markboth{#1}{}}
\rfoot{\thepage}
\fancyhead[LE,RO]{\thepage}
\setlength{\headheight}{14pt}

\input{./Report/Progress.tex}
\includepdf[pages=-]{./Appendices/A21.pdf}
\includepdf[pages=-]{./Appendices/A22.pdf}
\includepdf[pages=-]{./Appendices/A31.pdf}
\includepdf[pages=-]{./Appendices/A32.pdf}
\includepdf[pages=-]{./Appendices/A41.pdf}
\includepdf[pages=-]{./Appendices/A51.pdf}
\includepdf[pages=-]{./Appendices/A52.pdf}
\includepdf[pages=-]{./Appendices/A53.pdf}
\includepdf[pages=-]{./Appendices/A54.pdf}
\includepdf[pages=-]{./Appendices/A56.pdf}
\includepdf[pages=-]{./Appendices/A58.pdf}
\includepdf[pages=-]{./Appendices/A71.pdf}
\includepdf[pages=-]{./Appendices/A81.pdf}
\includepdf[pages=-]{./Appendices/A82.pdf}
\includepdf[pages=-]{./Appendices/A83.pdf}
\includepdf[pages=-]{./Appendices/A91.pdf}
\includepdf[pages=-]{./Appendices/A100.pdf}
\includepdf[pages=-]{./Appendices/A110.pdf}

%\nocite{*} 
%\bibliographystyle{ieeetr}
%\bibliography{Bibliography}


% ============================= Appendices ================================ 
%\pagestyle{empty}
\begin{appendix}
%%Map of Nam Bo Plain
%\chapter{Map of Nam Bo Plain}
%\includepdf[pages=-,pagecommand={\label{app:namboPlain}}]{./Appendices/NamboPlain/NamboPlain.pdf}

\end{appendix}
\end{document}

